define([],function(){
	var tpl = {};

	tpl.historyList = function(){
		return historyList();
	}
	tpl.info = function(){
		return info();
	}
	tpl.result = function(){
		return result();
	}
	tpl.guide = function(){
		return guide();
	}

	var historyList = function(){
		return 	'<script id="nbnaHistoryRecord_historyList" type="text/html">'+
				'	{{each list as value}}'+
                '		<li data-id="{{value.id}}"><span class="right"></span>{{value.testTime}}({{value.testAge}})</li>'+
                '	{{/each}}'+
				'</script>';
	}
	var info = function(){
        return  '<script id="nbnaHistoryRecord_info" type="text/html">'+
                '<div>基本<br/>信息</div>'+
                '<div class="clearfix">'+
                '	<span>孩子姓名：{{userName}}</span>'+
                '	<span>性别：{{if gender=="F"}}女{{else if gender=="M"}}男{{else}}未知{{/if}}</span>'+
                '	<span>年龄：{{testAge}}</span>'+
                '	<span>评估医生：{{doctorName}}</span>'+
                '</div>'+
            	'</script>';
    }
    var result = function(){
        return  '<script id="nbnaHistoryRecord_result" type="text/html">'+
                '	<ul class="clearfix">'+
                '		<li style="width:{{behaviorAbilityWidth}}">行为能力 <br/> {{behaviorAbility}}分</li>'+
                '		<li style="width:{{passiveMuscleWidth}}">被动肌张力 <br/> {{passiveMuscle}}分</li>'+
                '		<li style="width:{{activeMusclesWidth}}">主动肌张力 <br/> {{activeMuscles}}分</li>'+
                '		<li style="width:{{originalReflectionWidth}}">原始反射 <br/> {{originalReflection}}分</li>'+
                '		<li style="width:{{generalResponseWidth}}">一般反应 <br/> {{generalResponse}}分</li>'+
                '	</ul>'+
                '	<div class="total-score">'+
                '		<div class="clearfix">'+
                '			<span>总分</span>'+
                '			<span>{{totalScore}}</span>'+
                '			<span>{{conclusion}}</span>'+
                '		</div>'+
                '	</div>'+
                '</script>'
    }
    var guide = function(){
        return  '<script id="nbnaHistoryRecord_guide" type="text/html">'+
                '	<div id="nbnaGuide" class="nbna-item">'+
                '        <div class="title">'+
                '            指导建议'+
                '            <span class="modify pull-right" type="modify"><i class="fa fa-pencil-square-o" aria-hidden="true"></i>修改建议</span>'+
                '        </div>'+
                '        <div class="con">{{guide}}</div>'+
                '    </div>'+
                '    <div id="nbnaRemark" class="nbna-item">'+
                '        <div class="title">'+
                '            备注'+
                '            <span class="modify pull-right" type="modify"><i class="fa fa-pencil-square-o" aria-hidden="true"></i>修改备注</span>'+
                '        </div>'+
                '        <div class="con">{{remark}}</div>'+
                '    </div>'+
                '</script>'
    }

	return tpl;
});